package teleradiologia.utils;

import org.hibernate.SessionFactory;

public class HibernateUtil {

	private static SessionFactory sessionFactory;

	public void setSessionFactory(SessionFactory sessionFactory) {
		HibernateUtil.sessionFactory = sessionFactory;
	}

	public static SessionFactory getSessionFactory() {
		return HibernateUtil.sessionFactory;
	}

	public static void shutdown() {
		getSessionFactory().close();
	}
}
